package com.mastercard.assets.web.util.to;

import java.io.Serializable;

import com.mastercard.assets.jpa.TblAsset;

public class TblAssetWraper
	implements
		Serializable
{
	private TblAsset asset ;
	private int quantityOfPackage = 1 ;
	
	public TblAssetWraper( TblAsset asset )
	{
		this.asset = asset ;
	}
	
	public String getNombre( )
	{
		if( this.asset == null )
			return "" ;
		
		return this.asset.getNombre( ) ;
	}
	
	public int getCveAsset( )
	{
		if( this.asset == null )
			return -1 ;
		
		return this.asset.getCveAsset( ) ;
	}
	
	public void addPackage( )
	{
		quantityOfPackage++ ;
	}
	
	public int getQuantityOfPackage( )
	{
		return quantityOfPackage ;
	}
}
